package org.r505.chatroom.global.core;

import java.util.HashMap;

public class InstanceFactory {
	private final static HashMap<String,Object> instanceMap = new HashMap<String,Object>();
	private InstanceFactory(){}
	public static void createInstance(String name, Object object){
		instanceMap.put(name, object);
	}
	public static Object getInstance(String name){
		return instanceMap.get(name);
	}
}
